package cn.xuguowen.user;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;

/**
 * ClassName: UserApplication
 * Package: cn.xuguowen.user
 * Description:
 *
 * @Author 徐国文
 * @Create 2023/2/18 11:43
 * @Version 1.0
 */
@SpringBootApplication
@MapperScan(value = "cn.xuguowen.*.mapper")
@ComponentScan(value = "cn.xuguowen")
@EnableCaching
public class UserApplication {
    public static void main(String[] args) {
        // 使用异步日志
        System.setProperty("Log4jContextSelector", "org.apache.logging.log4j.core.async.AsyncLoggerContextSelector");

        SpringApplication.run(UserApplication.class,args);
    }
}
